﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data.Objects.DataClasses;
using System.Runtime.Serialization;

namespace DeploymentCopy.Model
{
    public partial class ZipLog : INotifyPropertyChanged
    {
        private bool _isDeployedStaging;
        [IgnoreDataMember]
        public bool IsDeployedStaging
        {
            get
            {
                return _isDeployedStaging;
            }
            set
            {
                base.OnPropertyChanging("IsDeployedStaging");
                _isDeployedStaging = value;
                base.OnPropertyChanged("IsDeployedStaging");
            }
        }

        private bool _isDeployedProduct;
        [IgnoreDataMember]
        public bool IsDeployedProduct
        {
            get
            {
                return _isDeployedProduct;
            }
            set
            {
                base.OnPropertyChanging("IsDeployedProduct");
                _isDeployedProduct = value;
                base.OnPropertyChanged("IsDeployedProduct");
            }
        }
    }

    /*public class ZipLogProxy : ViewModelBase
    {


        public const string FileNamePropertyName = "FileName";
        private string _fileName = "";
        public string FileName
        {
            get
            {
                return _fileName;
            }
            set
            {
                if (_fileName == value)
                {
                    return;
                }

                RaisePropertyChanging(FileNamePropertyName);
                _fileName = value;
                RaisePropertyChanged(FileNamePropertyName);
            }
        }

        public const string WasDeployedStagingPropertyName = "WasDeployedStaging";
        private bool _wasDeployedStaging = false;
        public bool WasDeployedStaging
        {
            get
            {
                return _wasDeployedStaging;
            }
            set
            {
                if (_wasDeployedStaging == value)
                {
                    return;
                }

                RaisePropertyChanging(WasDeployedStagingPropertyName);
                _wasDeployedStaging = value;
                RaisePropertyChanged(WasDeployedStagingPropertyName);
            }
        }

        public const string WasDeployedProductPropertyName = "WasDeployedProduct";
        private bool _wasDeployedProduct = false;
        public bool WasDeployedProduct
        {
            get
            {
                return _wasDeployedProduct;
            }
            set
            {
                if (_wasDeployedProduct == value)
                {
                    return;
                }

                RaisePropertyChanging(WasDeployedProductPropertyName);
                _wasDeployedProduct = value;
                RaisePropertyChanged(WasDeployedProductPropertyName);
            }
        }

        public const string SizePropertyName = "Size";
        private long? _size;
        public long? Size
        {
            get
            {
                return _size;
            }
            set
            {
                if (_size == value)
                {
                    return;
                }

                RaisePropertyChanging(SizePropertyName);
                _size = value;
                RaisePropertyChanged(SizePropertyName);
            }
        }

        public const string FolderPropertyName = "Folder";
        private string _folder = "";
        public string Folder
        {
            get
            {
                return _folder;
            }
            set
            {
                if (_folder == value)
                {
                    return;
                }

                RaisePropertyChanging(FolderPropertyName);
                _folder = value;
                RaisePropertyChanged(FolderPropertyName);
            }
        }
    }*/
}
